package com.ruoyi.common.entity.CoreEntity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 积分变动明细对象 point_records
 * 
 * @author ruoyi
 * @date 2025-08-07
 */
public class PointRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 积分变动记录ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 变动类型 */
    @Excel(name = "变动类型")
    private Long type;

    /** 积分变动 */
    @Excel(name = "积分变动")
    private Long points;

    /** 记录ID */
    @Excel(name = "记录ID")
    private Long relatedId;

    /** 变动说明 */
    @Excel(name = "变动说明")
    private String description;

    /** 当前积分 */
    @Excel(name = "当前积分")
    private Long pointsBalance;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public void setPoints(Long points) 
    {
        this.points = points;
    }

    public Long getPoints() 
    {
        return points;
    }

    public void setRelatedId(Long relatedId) 
    {
        this.relatedId = relatedId;
    }

    public Long getRelatedId() 
    {
        return relatedId;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setPointsBalance(Long pointsBalance) 
    {
        this.pointsBalance = pointsBalance;
    }

    public Long getPointsBalance() 
    {
        return pointsBalance;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("type", getType())
            .append("points", getPoints())
            .append("relatedId", getRelatedId())
            .append("description", getDescription())
            .append("pointsBalance", getPointsBalance())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
